#include<stdio.h>
int main()
{
	int i=0;
	int count=0;
	scanf("%d",&i);
	do{
		count++;
		i=i/10;
	}while(i);
	printf("%d\n",count); 
	return 0;
}
